package com.linqingying.gitcode.api.data;

import org.jetbrains.annotations.NotNull;

import java.util.Objects;


@SuppressWarnings("UnusedDeclaration")
public class GitCodeNamespace {
    private Long id;
    private GitCodeNamespaceType type;
    private String name;
    private String path;
    private String htmlUrl;

    @NotNull
    public GitCodeNamespaceType getType() {
        return type;
    }

    @NotNull
    public String getName() {
        return name;
    }

    @NotNull
    public String getPath() {
        return path;
    }

    @NotNull
    public String getHtmlUrl() {
        return htmlUrl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;

        if (!(o instanceof GitCodeNamespace)) return false;

        GitCodeNamespace namespace = (GitCodeNamespace) o;
        return id.equals(namespace.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }

}
